package com.dss.auto_deploy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* @Description:数据库修改【入参】
* @author dongshoushan
* @date 2022-10-29 13:00:16
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "数据库")
public class AdmDbUpdateDto {

    /**
    * 主键
    */
    @ApiModelProperty(value = "主键",example = "")
    private Long id;
    private String name;
    private String clientUrl;
    /**
    * 类型:mysql、redis、mongo
    */
    @ApiModelProperty(value = "类型:mysql、redis、mongo",example = "")
    private String dbType;

    /**
    * ip地址
    */
    @ApiModelProperty(value = "ip地址",example = "")
    private String ip;

    /**
    * 端口
    */
    @ApiModelProperty(value = "端口",example = "")
    private Integer port;

    /**
    * 用户名
    */
    @ApiModelProperty(value = "用户名",example = "")
    private String username;

    /**
    * 密码
    */
    @ApiModelProperty(value = "密码",example = "")
    private String password;

    /**
    * 挂载目录
    */
    @ApiModelProperty(value = "挂载目录",example = "")
    private String mountPath;

    /**
    * 所在docker
    */
    @ApiModelProperty(value = "所在docker",example = "")
    private Long dockerId;

    /**
    * 容器id
    */
    @ApiModelProperty(value = "容器id",example = "")
    private String containerId;

    /**
    * 安装时间
    */
    @ApiModelProperty(value = "安装时间",example = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date installTime;



}
